<template>
  <div class="sort-title">
    <div class="title-font">
      <h2>{{ title.title }}</h2>
      <van-icon name="arrow" v-show="title.isShowTitle" />
    </div>
    <div></div>
  </div>
</template>

<script setup>
import { reactive } from "vue";

const title = defineProps(["title", "isShowTitle"]);
</script>
<style lang="less">
.sort-title {
  width: 1100px;
  display: flex;
  justify-content: space-between;

  &:hover {
    cursor: pointer;
  }

  .title-font {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000000c7;

    h2 {
      margin-right: 2px;
    }
  }
}
</style>